<html><head><title>ScrollAreaGadget3D</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ScrollAreaGadget3D()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>ScrollAreaGadget3D</b></font>(#Gadget3D, x, y, Width, Height, ScrollAreaWidth, ScrollAreaHeight, ScrollStep)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Creates a ScrollArea gadget in the current GadgetList. It's very useful when a gadget is 
too big to fit the window dimension. In that case, it can be put into a scrollarea. All the 
scrolling is handled automatically by the gadget. This is a container gadget, intended 
to have one or several gadget in its scroll area. Once the gadget is created, 
all future created gadgets will be created inside the scroll area. When all the needed 
gadgets have been created, <a href="closegadgetlist3d.html">CloseGadgetList3D()</a> must be called to return to the 
previous GadgetList. <a href="opengadgetlist3d.html">OpenGadgetList3D()</a> can be used later to add others gadgets 
on the fly in the scroll area. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Gadget3D</i></td>
<td width="90%"> 
A number to identify the new 3D gadget. <a href="../reference/purebasic_objects.html">#PB_Any</a> can 
be used to auto-generate this number. 

</td></tr>
<tr><td><i>x, y, Width, Height</i></td>
<td> 
The position and dimensions of the new gadget. 

</td></tr>
<tr><td><i>ScrollAreaWidth, ScrollAreaHeight</i></td>
<td> 
The dimensions of the scrollable area inside the gadget. These can also be smaller than the outer dimensions, in 
this case scrolling will be disabled. 

</td></tr>
<tr><td><i>ScrollStep (optional)</i></td>
<td> 
The amount of pixels to scroll when the user presses the scroll bar arrows. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Nonzero on success, zero otherwise. If <font color="#924B72">#PB_Any</font> was used as the #Gadget3D parameter 
then the return-value is the auto-generated gadget number on success. 

</blockquote><p><b>Remarks</b></p><blockquote>

The following functions can be used to act on a ScrollAreaGadget: <br>
<br>
<a href="getgadgetattribute3d.html">GetGadgetAttribute3D()</a>: With one of the following attribute: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_ScrollArea3D_InnerWidth</font>  : Returns the width (in pixels) of the contained scrollable area.
  <font color="#924B72">#PB_ScrollArea3D_InnerHeight</font> : Returns the height (in pixels) of the contained scrollable area.
  <font color="#924B72">#PB_ScrollArea3D_X</font>           : Returns the current horizontal scrolling position (in pixels).
  <font color="#924B72">#PB_ScrollArea3D_Y</font>           : Returns the current vertical scrolling position (in pixels).
</font></pre>
<a href="setgadgetattribute3d.html">SetGadgetAttribute3D()</a>: With one of the following attribute: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_ScrollArea3D_InnerWidth</font>  : Changes the width (in pixels) of the contained scrollable area.
  <font color="#924B72">#PB_ScrollArea3D_InnerHeight</font> : Changes the height (in pixels) of the contained scrollable area.
  <font color="#924B72">#PB_ScrollArea3D_X</font>           : Changes the current horizontal scrolling position (in pixels).
  <font color="#924B72">#PB_ScrollArea3D_Y</font>           : Changes the current vertical scrolling position (in pixels).
</font></pre>

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=resizegadget3d.html>ResizeGadget3D()</a> - <a href=index.html>Gadget3D Index</a> - <a href=scrollbargadget3d.html>ScrollBarGadget3D()</a> ->

</body></html>